<template>
    <div class="tableHeader">
        <span class="tableItem-label" :style="{width:item.width+'px',textAlign:item.align}" v-for='(item,index) in headerList' :key='index'>{{item.label}}</span>
    </div>
</template>
<script>
export default {
    name:'table-header',
    props: {
        headerList: {
            type: Array,
            default: ()=>[]
        },
    },
}
</script>
<style   src='./index.less' lang="less" scoped></style>